package shujia.day13;

import java.io.FileInputStream;

public class FileInputStreamDemo2 {
    public static void main(String[] args) throws Exception{
        FileInputStream fis = new FileInputStream("src/shujia/day13/斗罗大陆-第一章.txt");

        //一次读取一个字节
//        int i = 0;
//        while ((i=fis.read())!=-1){
//            System.out.print((char) i);
//        }

//        System.out.print((char)fis.read() );


        byte[] bytes = new byte[7];
        int length = fis.read(bytes);
        String s = new String(bytes, 0, length);
        System.out.print(s);



        fis.close();
    }
}
